
var login = require('./admin/login');
var index = require('./admin/index');
var odds = require('./admin/odds');
var adminUser = require('./admin/adminUser');

var app_index = require('./index');
var app_prize = require('./prize');
var app_user = require('./user');

var ulogin = require('./uadmin/login');
var uindex = require('./uadmin/index');

//develop
var weixin = require('./develop/weixin');
var access_token = require('./develop/access_token');

var route = function(){
    this.use('/admin', index);
    this.use('/uadmin', uindex);
    this.use('/admin/login', login);
    this.use('/uadmin/login', ulogin);
    this.use('/admin/odds', odds);
    this.use('/admin/adminUser', adminUser);

    //develop
    access_token.get();
    this.use('/develop/weixin', weixin);

    this.use('/', app_index);
    this.use('/prize', app_prize);
    this.use('/user', app_user);
};

module.exports = route;
